import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {ConActivityIndexComponent} from './con-activity-index.component';

const routes: Routes = [
    {path: '', component: ConActivityIndexComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-con-activity-index/add-con-activity-index.module#AddConActivityIndexModule'},
            {path: 'list', loadChildren: './list-con-activity-index/list-con-activity-index.module#ListConActivityIndexModule'},
            {path: 'modify', loadChildren: './modify-con-activity-index/modify-con-activity-index.module#ModifyConActivityIndexModule'},
            {path: 'report', loadChildren: './report-con-activity-index/report-con-activity-index.module#ReportConActivityIndexModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class ConActivityIndexRoutingModule {
}
